90510: Function test for xfi:distinct-nonAbstract-parent-concepts

Documentation

Tests of function xfi:distinct-nonAbstract-parent-concepts($linkrole as xs:string?, $arcrole as xs:string) as element(xs:QName)*

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 04-11-2009 at 20:00:00
Andy Harris UBMatrix andy.harris@ubmatrix.com 14-09-2010 at 12:00:00
Peter Cowan CoreFiling prc@corefiling.com 30-11-2012 at 12:30:00

References

http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666

Test Case Variations


V-01 Non-abstract parents, link1

Documentation

Inputs

  • schema: nav-rel-test-with-abstract.xsd (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:distinct-nonAbstract-parent-concepts( 'http://abc.com/role/link1', 'http://www.xbrl.org/2003/arcrole/parent-child')

    (against file V01)

Outputs

  • Result test: count($result) eq 5 and count(distinct-values($result)) eq 5 and (every $r in $result satisfies ($r instance of xs:QName) and exists( index-of( ( QName('http://abc.com/test','A'), QName('http://abc.com/test','A112'), QName('http://abc.com/test','A113'), QName('http://abc.com/test','A2'), QName('http://abc.com/test','A21') ), $r) ))

V-02 Non-abstract parents, standard link

Documentation

Inputs

  • schema: nav-rel-test-with-abstract2.xsd (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:distinct-nonAbstract-parent-concepts( '', 'http://www.xbrl.org/2003/arcrole/parent-child')

    (against file V02)

Outputs

  • Result test: count($result) eq 5 and count(distinct-values($result)) eq 5 and (every $r in $result satisfies ($r instance of xs:QName) and exists( index-of( ( QName('http://abc.com/test','A'), QName('http://abc.com/test','A112'), QName('http://abc.com/test','A113'), QName('http://abc.com/test','A2'), QName('http://abc.com/test','A21') ), $r) ))

V-02a Non-abstract parents, standard link

Documentation

Variation of V-02 but uses an empty sequence as the linkrole argument.

Inputs

  • schema: nav-rel-test-with-abstract2.xsd (DTS Discovery starting point) (ID=V02a)
  • Function Call: xfi:distinct-nonAbstract-parent-concepts( (), 'http://www.xbrl.org/2003/arcrole/parent-child')

    (against file V02a)

Outputs

  • Result test: count($result) eq 5 and count(distinct-values($result)) eq 5 and (every $r in $result satisfies ($r instance of xs:QName) and exists( index-of( ( QName('http://abc.com/test','A'), QName('http://abc.com/test','A112'), QName('http://abc.com/test','A113'), QName('http://abc.com/test','A2'), QName('http://abc.com/test','A21') ), $r) ))

Revisions

Name On Details
Herm Fischer 04-11-2009 at 20:00:00 Created.
Herm Fischer 07-09-2010 at 00:00:00 Incorporated feedback from Hitoshi Okumura. Added A112 to V-01 test result. Added xs:anyURI constructor functions to anyURI parameters.
Herm Fischer 09-09-2010 at 00:00:00 Changed role URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.
Andy Harris 14-09-2010 at 12:00:00 Fixed issues raised by Okumura-san.
Herm Fischer 22-06-2011 at 00:00:00 Added xmlns:xs.
Peter Cowan 30-11-2012 at 12:30:00 Added two tests for standard link as the linkrole argument. These use an empty string and an empty sequence respectively to specify it.